package com.hwc.demo.dubbo.service.impl;

import java.util.List;

import com.hwc.demo.dubbo.bean.UserAddress;
import com.hwc.demo.dubbo.service.OrderService;
import com.hwc.demo.dubbo.service.UserService;

public class OrderServiceImpl implements OrderService{

	UserService userService;
	
	@Override
	public List<UserAddress> initOrderAddress(Integer userId) {
		//调用户服务（假想userService的实现在另一台机器）
		List<UserAddress> address_list = userService.getUserAddressList(userId);
		
		return address_list;
	}

}
